﻿using PetaPoco;
using System;

namespace Cxuu.Models
{
    [TableName("cxuu_log_sql")]
    [PrimaryKey("Id", AutoIncrement = true)]
    public class LogSql
    {
        public int Id { get; set; }
        public int UserId { get; set; }
        public string ControllerAction { get; set; }
        public string Ip { get; set; }
        public DateTime Time { get; set; }
        public string DoThing { get; set; }

    }

    public class ViewLogSql
    {
        public int Id { get; set; }
        public int UserId { get; set; }
        public string ControllerAction { get; set; }
        public string Ip { get; set; }
        public DateTime Time { get; set; }
        public string DoThing { get; set; }
        public string Username { get; set; }
        public string Nickname { get; set; }
    }
}